<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/7/2
 * Time: 3:10 PM
 */
namespace app\common\models;

class DepartmentAdminUser extends BaseModel
{
    public $table = 'yq_department_admin_user';
    public $timestamps = false;
    protected $guarded = [''];

    public function department()
    {
        return $this->hasOne(Department::class, 'id', 'department_id');
    }
    public function adminUser()
    {
        return $this->hasOne(AdminUser::class, 'uid', 'uid');
    }
}